﻿using NUnit.Framework;

namespace Iowa.Infrastructure.Test.Test_PersonRepository
{
  [TestFixture]
  public class Test_People_Delete : Test_People_Base
  {
    [Test]
    public void I_Wanna_Update_A_Person_Already_In_The_System()
    {
      var tmp = InsertPerson();
      var repo = new PersonRepository();
      var result = repo.DeletePerson(EntityId);
      var person = repo.GetById(EntityId);
      EntityId = person.Id; // in order to skip the [TearDown] method
      Assert.AreEqual(default(int), person.Id);
    }
  }
}
